﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace PrivateTracker.Service.Core;
/// <summary>
/// 系统角色表种子数据
/// </summary>
public class SysRoleSeedData : IEntitySeedData<SysRole>
{
    /// <summary>
    /// 种子数据
    /// </summary>
    /// <param name="dbContext"></param>
    /// <param name="dbContextLocator"></param>
    /// <returns></returns>
    public IEnumerable<SysRole> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return new[]
        {
                new SysRole{TenantId=0, Id=142307070910554, Name="超级管理员",RoleType=RoleTypeEnum.SUPER_MANAGER_GROUP, Code="sup_manager_role", Sort=100, Remark="超级管理员", Status=0 },

                new SysRole{TenantId=142307070918780, Id=142307070910555, Name="系统管理员", RoleType=RoleTypeEnum.MANAGER_GROUP, Code="sys_manager_role", Sort=100, Remark="系统管理员", Status=0 },

                new SysRole{TenantId=142307070918780, Id=142307070910556, Name="普通用户", RoleType=RoleTypeEnum.LEVEL_GROUP,Level=(int)RoleTypeEnum.LEVEL_GROUP, Code="common_role", Sort=101, Remark="普通用户", Status=0 }
            };
    }
}